package com.zbkj.common.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TransferOrderSearchRequest", description = "门店、仓库调货单请求对象")
public class TransferOrderSearchRequest {

    @ApiModelProperty(value = "单据编号")
    private String receiptNumber;

    @ApiModelProperty(value = "转出类型(1仓库  2门店)")
    private Integer transferOutType;

    @ApiModelProperty(value = "转出门店id(仓库id)")
    private Integer transferOutStoreId;

    @ApiModelProperty(value = "转入类型(1仓库  2门店)")
    private Integer transferInType;

    @ApiModelProperty(value = "转入门店id(仓库id)")
    private Integer transferInStoreId;

    @ApiModelProperty(value = "单据开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date receiptStartTime;

    @ApiModelProperty(value = "单据结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date receiptEndTime;

    @ApiModelProperty(value = "审核状态(0草稿 1待审核  2审核通过)")
    private Integer auditStatus;
}
